﻿using UniMana.Utils.Controls;

namespace UniMana.Win.Personnel
{
    public partial class FrmPersonelList_RptList : DevExpress.XtraReports.UI.XtraReport
    {
        public FrmPersonelList_RptList(bds data)
        {
            InitializeComponent();

            this.DataSource = data;
            xrlID.DataBindings.Add("Text", this.DataSource, "ID");
            xrlLastName.DataBindings.Add("Text", this.DataSource, "LastName");
            xrlName.DataBindings.Add("Text", this.DataSource, "Name");
            try
            {
                xrlBirthday.DataBindings.Add("Text", this.DataSource, "Bday", "{0:dd/MM/yyyy}");
            }
            catch 
            {
                xrlBirthday.DataBindings.Add("Text", this.DataSource, "Bday");
            }
            xrlGender.DataBindings.Add("Text", this.DataSource, "Gender");
            xrlPlaceofBirth.DataBindings.Add("Text", this.DataSource, "PlaceOfBirth");
            
        }

    }
}
